home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
SANTA01.422
< prev
next >
Wrap
Text File
|
1993-02-17
|
4KB
|
122 lines
1SANTA01.422
Santa Claus #3 @25457 2[4Dungeon Keeper2]0
Sun Feb 14 16:32:05 1993
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: SANTA01.422 Mod Author: Santa Claus │
│ Difficulty: Very Easy 1/10 Date: 02/13/93 08:41 pm │
│ WWIV Version: 4.22 │
│ Description: List User Name AND Title in Scan Title. │
└────────────────────────────────────────────────────────────────────────────┘
WOW! Many people work on that mod... Jeff Garzik was the first, i think, that
as written such a mod. Followed by Bruce Guthrie #28 @2900, Life Arts Network
Sysops 1@9443 (GRABNAME.MOD) and finnaly Vortex Rouge 1@5869 (VRNXTEN2.MOD)
I have made improvements over origional design, but the ideas present
are esentially from them.
What I did was split the thing in two line, the first line is for the message
Number and (net)name, the second line is for the message title, ( I hate to
see half of a long title...hehe!) cosmetic change and bug killing. (sic!)
BUG: The name of the user was show if the post is from an -=> UNKNOWN <=-
user. ( Repair in this version, of course! )
Note : Color codes can be change/added.
*! This modification is an update from 4.21a to 4.22 !*
Here we go:
= - original
+ - add
Step one: Back up your source (Just in case, it ain't that hard anyway!)
Step two LOAD FILE: Msgbase1.c
Beginning of Void Scan, change the following:
= void scan(int msgnum, int optype, int *nextsub)
= {
= char s[81],s1[81],s2[81],*b,*ss1;
= int i,i1,i2,done,quit,abort,next,val,realexpress;
= slrec ss;
+ userrec u; /* add this line */
= long l,len;
= postrec p,p1;
Step three: search for case 1: /* List Titles */
delete the entire case... and block copy in this entire
the replacement following :
/* begin block read for SANTA01.422 */
case 1: /* List Titles */
i=0;
abort=0;
if (thisuser.sysstatus & sysstatus_clr_scrn)
outchr(12);
nl();
if (msgnum>=nummsgs)
abort=1;
while ((!abort) && (!hangup) && (++i<=10)) {
++msgnum;
if (msgs[msgnum].qscan>qsc_p[curlsub])
strcpy(s,"* ");
else if (msgs[msgnum].status
& (status_pending_net | status_unvalidated))
strcpy(s,"- ");
else
strcpy(s," ");
if (msgnum<100)
strcat(s," ");
if (msgnum<10)
strcat(s," ");
itoa(msgnum,s2,10);
if ((msgs[msgnum].ownersys==0) && (msgs[msgnum].owneruser==usernum))
sprintf(s1,"6%s3[2%s3] ",s,s2);
else if (msgs[msgnum].ownersys!=0)
sprintf(s1,"6%s3<2%s3> ",s,s2);
else
sprintf(s1,"6%s3(2%s3) ",s,s2);
outstr(s1);
ss=syscfg.sl[thisuser.sl];
if ((msgs[msgnum].anony & anony_sender)
&& ((ss.ability & ability_read_post_anony)==0)) {
sprintf(s,"1-=> 2UNKNOWN 1<=-");
pl(s);
} else if (msgs[msgnum].ownersys==0) {
read_user(msgs[msgnum].owneruser,&u);
sprintf(s,"5%s",nam(&u,msgs[msgnum].owneruser));
pl(s);
} else {
grab_user_name(&(msgs[msgnum].msg),subboards[curlsub].filename);
sprintf(s,"3%s",net_email_name);
pl(s);
}
if ((msgs[msgnum].status&(status_unvalidated|status_delete))
&&(!lcs()))
sprintf(s," 4<<< NOT VALIDATED YET >>>");
else
sprintf(s," 0%s",msgs[msgnum].title);
pl(s);
if (msgnum>=nummsgs)
abort=1;
}
optype=0;
break;
/* End Block Read for SANTA01.422 */
= case 2: /* Read Message */
= if ((msgnum>0) && (msgnum<=nummsgs))
= read_message(msgnum,&next,&val);
Step 4: Re-compile.
That's it! Voila!
Anyway...I garantee nothing. If you have problems installing this mod,
you better run a plain WWIV system... cuz a monkey can do it!
If you want to thank me, send your message at :
Hammer's Dungeon (514)747-6088 3@5457 WWIVnet.